package bsr.basara.autodata.dao;

import bsr.basara.autodata.entity.TableInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author basara
 */
@Component
public interface TableInfoRepository extends JpaRepository<TableInfo, Long> {

    List<TableInfo> findAllByNameIn(List<String> names);

    List<TableInfo> findByType(Integer type);

    TableInfo findByName(String name);

}
